package com.enumdemo;

enum Spiciness {
	NOT, MILD, MEDIUM, HOT, FLAMING
};

public class Demo2 {
	Spiciness degree;

	public Demo2(Spiciness degree) {
		this.degree = degree;
	}

	public String toString() {
		return "is " + degree;
	}

	public static void main(String[] args) {
		System.out.println(new Demo2(Spiciness.NOT));
		System.out.println(new Demo2(Spiciness.MEDIUM));
		System.out.println(new Demo2(Spiciness.HOT));
	}

}
